// 排行榜页面主容器
.rankPage {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4eef8 100%);
  position: relative;
  overflow: hidden;

  // 添加背景装饰效果
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(129, 200, 250, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(180, 220, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
  }

  // 网格背景
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(129, 200, 250, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(129, 200, 250, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
}

// 内容区域
.content {
  padding: 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

// 页面标题区域
.header {
  margin-bottom: 40px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 245, 255, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(129, 200, 250, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(129, 200, 250, 0.2);

  // 装饰性元素 - 发光圆点
  &::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 200, 250, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s infinite ease-in-out;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(180, 220, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out 1s;
  }

  // 标题样式
  .pageTitle {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    background: linear-gradient(to right, #2c69a5, #52a3e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(129, 200, 250, 0.3);
    position: relative;
  }

  // 副标题样式
  .pageSubtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 4px 0;
    position: relative;
    position: relative;
    z-index: 1;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 80px;
      height: 2px;
      background: linear-gradient(to right, #81c8fa, transparent);
      transition: width 0.3s ease;
    }
  }

  // 悬停效果
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(129, 200, 250, 0.15);

    .pageSubtitle::after {
      width: 100%;
    }
  }
}

// 脉冲动画
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

// 选项卡样式
.tabs {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(129, 200, 250, 0.1);
  box-shadow: 0 8px 32px rgba(129, 200, 250, 0.05);

  // 选项卡标签
  .ant-tabs-tab {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 24px !important;
    transition: all 0.3s ease;
    position: relative;

    &:hover {
      color: #2c69a5;
    }

    &.ant-tabs-tab-active {
      color: #2c69a5;
      font-weight: 600;
    }
  }

  // 选项卡激活下划线
  .ant-tabs-ink-bar {
    background: linear-gradient(90deg, #81c8fa, #52a3e0);
    height: 3px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(129, 200, 250, 0.4);
  }

  // 选项卡内容
  .tabContent {
    padding-top: 24px;
  }
}

// 电影网格布局
.movieGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

// 电影卡片样式
.movieCard {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(129, 200, 250, 0.1) !important;

  // 卡片装饰元素
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 200, 250, 0.05) 0%, rgba(180, 220, 255, 0.05) 100%);
    pointer-events: none;
  }

  &:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(129, 200, 250, 0.15) !important;
    border-color: rgba(129, 200, 250, 0.3) !important;
  }
}

// 前三名电影卡片特殊样式
.topRankCard {
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  animation: glow 3s infinite alternate ease-in-out;
}

// 发光动画
@keyframes glow {
  0% {
    box-shadow: 0 8px 24px rgba(129, 200, 250, 0.1);
  }
  100% {
    box-shadow: 0 8px 32px rgba(129, 200, 250, 0.2);
  }
}

// 电影封面样式
.movieCover {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;

  .coverImage {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
  }

  .movieOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.7) 100%);
    opacity: 0.8;
    pointer-events: none;
  }

  &:hover .coverImage {
    transform: scale(1.05);
  }
}

// 排名数字样式
.rankNumber {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #2c69a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(129, 200, 250, 0.3);
  z-index: 10;
}

// 金牌排名
.rankGold {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffc107);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  z-index: 10;
  animation: goldGlow 2s infinite alternate ease-in-out;
}

// 银牌排名
.rankSilver {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(192, 192, 192, 0.6);
  z-index: 10;
  animation: silverGlow 2s infinite alternate ease-in-out;
}

// 铜牌排名
.rankBronze {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cd7f32, #d4af37);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(205, 127, 50, 0.6);
  z-index: 10;
  animation: bronzeGlow 2s infinite alternate ease-in-out;
}

// 奖牌发光动画
@keyframes goldGlow {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
  }
}

@keyframes silverGlow {
  0% {
    box-shadow: 0 0 16px rgba(192, 192, 192, 0.6);
  }
  100% {
    box-shadow: 0 0 24px rgba(192, 192, 192, 0.9);
  }
}

@keyframes bronzeGlow {
  0% {
    box-shadow: 0 0 14px rgba(205, 127, 50, 0.6);
  }
  100% {
    box-shadow: 0 0 22px rgba(205, 127, 50, 0.9);
  }
}

// 电影信息区域
.movieInfo {
  padding: 16px;
}

// 电影标题行
.movieTitleRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

// 电影标题
.movieTitle {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin: 0 !important;
  line-height: 1.4;
}

// 评分标签
.ratingTag {
  background: linear-gradient(135deg, #81c8fa, #52a3e0) !important;
  border: none !important;
  font-weight: 600;
  padding: 2px 12px;
  font-size: 0.9rem;
  color: white !important;
}

// 电影元数据
.movieMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

// 分类标签
.categoryTag {
  background: linear-gradient(135deg, #8ac4ff, #b3d9ff) !important;
  border: none !important;
  font-size: 0.85rem;
  padding: 2px 10px;
  color: #2c69a5 !important;
}

// 发布时间
.publishTime {
  font-size: 0.85rem !important;
  color: #666 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

// 统计数据行
.statsRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(129, 200, 250, 0.2);
}

// 统计项
.statsItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

// 统计图标
.statIcon {
  color: #81c8fa;
  font-size: 1.1rem;
}

// 统计数值
.statValue {
  color: #333 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

// 排行榜信息部分
.rankInfoSection {
  margin-top: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(129, 200, 250, 0.1);
  box-shadow: 0 8px 32px rgba(129, 200, 250, 0.05);

  // 标题样式
  .ant-typography-title {
    color: #333 !important;
    margin-bottom: 16px !important;
    font-weight: 700 !important;
  }

  // 分割线
  .divider {
    background: rgba(129, 200, 250, 0.2) !important;
    margin: 16px 0 24px 0 !important;
  }

  // 信息文本
  .infoText {
    color: #666;
    line-height: 1.8;

    p {
      margin-bottom: 12px;
      font-size: 1rem;
    }

    p:last-child {
      margin-bottom: 0;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .content {
    padding: 24px 16px;
  }

  .header {
    padding: 32px 24px;
    margin-bottom: 32px;

    .pageTitle {
      font-size: 2.25rem !important;
    }

    .pageSubtitle {
      font-size: 1rem;
    }
  }

  .movieGrid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .tabs {
    padding: 20px 16px;

    .ant-tabs-tab {
      font-size: 1rem;
      padding: 10px 16px !important;
    }
  }

  .rankInfoSection {
    padding: 24px;
    margin-top: 32px;
  }

  .movieCover .coverImage {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 24px 20px;

    .pageTitle {
      font-size: 1.8rem !important;
    }
  }

  .movieGrid {
    grid-template-columns: 1fr;
  }

  .movieCover .coverImage {
    height: 320px;
  }
}